import Vue from 'vue'
import Router from 'vue-router'
//获取
import Home from '@/pages/home/Home'
import Detail from'@/pages/detail/Detail'
import City from '@/pages/city/City'

Vue.use(Router)

export default new Router({
  //取消‘/’
  mode:'history',
  routes: [
    {
      path: '/',
      name:'Home',
      component:Home
    },
    {
      path: '/detail',
      name:'Detail',
      component:Detail
    },
    {
      path: '/city',
      name:'City',
      component:City
    }
  ]
})
